package com.jsh.erp.config;

import org.activiti.api.process.model.events.StartMessageDeployedEvent;
import org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener;
import org.activiti.runtime.api.conf.ProcessRuntimeAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Activiticonfig {
    @Bean
    public ProcessRuntimeEventListener<StartMessageDeployedEvent>  startMessageDeployedEventListener() {
        return event -> {
            // 处理 StartMessageDeployedEvent 的逻辑
//            System.out.println("StartMessageDeployedEvent received: " + event);
        };
    }
}
